import http from '@/common/http'

export const queryAll = (params) => {
  const url = `nav/queryAll`
  return http.post(url,
    params
  )
}

export const addNav = (params) => {
  const url = `nav`
  return http.post(url,
    params
  )
}

export const uptateNav = (params) => {
  const url = `nav/${params.id}`
  return http.put(url,
    params
  )
}

export const deteleNav = (params) => {
  const url = `nav/${params}`
  return http.delete(url)
}
